<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>山东林业扶贫项目</title>
  <meta name="description" content="山东林业扶贫项目">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="${ctxStatic}/sdlyfp/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="${ctxStatic}/sdlyfp/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="${ctxStatic}/sdlyfp/css/amazeui.min.css" />
  <link rel="stylesheet" href="${ctxStatic}/sdlyfp/css/admin.css">
  <link rel="stylesheet" href="${ctxStatic}/sdlyfp/css/app.css">
  <script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  <link rel="stylesheet" href="${ctxStatic}/sweetalert/sweetalert.css">
  <script src="${ctxStatic}/sweetalert/sweetalert.min.js"></script>
  <script src="${ctxStatic}/sdlyfp/js/base.js"></script>
  
</head>

<body data-type="generalComponents">

	<!-- head -->
	<jsp:include page="head.jsp" flush="false"></jsp:include>
	
	<div class="tpl-page-container tpl-page-header-fixed">
	
	<!-- 菜单 -->
	<jsp:include page="menu.jsp" flush="false"></jsp:include>

	
	<div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                	林业技术培训
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li> 
                <li class="am-active">林业技术培训</li>
            </ol>
            <div class="tpl-portlet-components">
            
            <form class="am-form" method="post" action="${ctx }/gt/gtTrain/listTrainPeople">
            	
            	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
				<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
            	<input type="hidden" name="train.id" value="${gtTrainPeople.train.id }"/>
            	<input type="hidden" id="menuId" name="menuId" value="${gtTrainPeople.menuId }"/>
            	
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> ${gtTrainPeople.train.name } 帮扶带动建档立卡贫困人口信息
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">  <a href="${ctx }/gt/gtTrain/formTrainPeople?train.id=${gtTrainPeople.train.id}&menuId=${gtTrainPeople.menuId }"><button type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span>新增</button></a> 
                                 </div>
                        </div>
                    </div>


                </div>
               	</form>
                <div class="tpl-block">
                    <div class="am-g">
                        
                         <div class="am-u-sm-12 am-u-md-3"></div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" name="name" value="${gtTrainPeople.name }" class="am-form-field">
                                <span class="am-input-group-btn">
					            <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="button" onclick="doSubmit();"></button>
					          </span>
                            </div>
                        </div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                            
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            
                                            <th class="table-title">姓名</th>
                                            <th class="table-type">是否户主</th>
											<th class="table-type">身份证</th>
											<th class="table-type">家庭户主</th>
											<th class="table-type">帮扶方式</th>
											<!-- <th class="table-type">帮扶金额</th>
											<th class="table-type">帮扶时间</th>  -->
                                            <th class="table-set">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                         <!-- <tr>
                                            <td>张三岁</td><td>是</td><td>370125198001015236</td> <td>张三岁</td><td>方式一</td><td>3000元</td><td>2018-10-10</td><td>  <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="jjlpeoadd.html"><span class="am-icon-pencil-square-o"></span> 修改</a></a>
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</button>
														
                                                    </div>
                                                </div></td> 
                                        </tr> -->
                                        <c:forEach items="${page.list }" var="trainPeople">
                                        	<tr>
                                            <td>${trainPeople.name }</td>
                                            <td>${trainPeople.isHolder eq '1'?'是':'否'}</td>
                                            <td>${trainPeople.idcard }</td> 
                                            <td>${trainPeople.address }</td>
                                            <td>
												<c:if test="${fn:indexOf(trainPeople.helpType,'1') gt -1}">
													土地流转&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'2') gt -1}">
													入股分红&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'3') gt -1}">
													劳务用工&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'4') gt -1}">
													不低于市场价收购林产品&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'5') gt -1}">
													生产物资&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'6') gt -1}">
													嫁接改造&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'7') gt -1}">
													退耕还果还林&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'8') gt -1}">
													项目分红&nbsp;
												</c:if>
												<c:if test="${fn:indexOf(trainPeople.helpType,'o') gt -1}">
													其他(${trainPeople.helpOther})
												</c:if>
											</td>
                                            <%-- <td>${trainPeople.money }元</td>
                                            <td><fmt:formatDate value="${trainPeople.moneyTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td> --%>
                                            <td>
                                            	<div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="${ctx }/gt/gtTrain/formTrainPeople?train.id=${gtTrainPeople.train.id}&id=${trainPeople.id}&menuId=${gtTrainPeople.menuId }"><span class="am-icon-pencil-square-o"></span> 修改</a></a>
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only" onclick="del('${trainPeople.id}');" type="button"><span class="am-icon-trash-o"></span> 删除</button>
														
                                                    </div>
                                                </div>
                                             </td> 
                                        	</tr>
                                        </c:forEach>
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <!-- <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            <li class="am-disabled"><a href="#">«</a></li>
                                            <li class="am-active"><a href="#">1</a></li>
                                            <li><a href="#">2</a></li>
                                            <li><a href="#">3</a></li>
                                            <li><a href="#">4</a></li>
                                            <li><a href="#">5</a></li>
                                            <li><a href="#">»</a></li>
                                        </ul>
                                    </div> -->
                                    ${page }
                                </div>
                                <hr>

                        </div>

                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>



        </div>
       

    </div>

  <script src="${ctxStatic}/sdlyfp/js/jquery.min.js"></script>
  <script src="${ctxStatic}/sdlyfp/js/amazeui.min.js"></script>
  <script src="${ctxStatic}/sdlyfp/js/app.js"></script>
</body>
<script type="text/javascript">
$(document).ready(function() {
	// $(".tpl-left-nav-menu").find("li a").eq(2).addClass("active");
	
	var menuId = '${gtTrainPeople.menuId }';
	if(menuId)
	{
		$(".tpl-left-nav-menu").find("#"+menuId).addClass("active");
	}
	
	var message = "${message}";
	if(message)
	{
		var messageType = "${messageType}";
		msg(message,3000,messageType);
	}
});

function del(trainPeopleId)
{
	
	var content = "您确认要删除吗？";
	var url = ctx + "/gt/gtTrain/deleteTrainPeople?id=" + trainPeopleId + "&train.id=${gtTrainPeople.train.id}&menuId=${gtTrainPeople.menuId }";
	comfirmMsg(content,url,"warning");
}
</script>
</html>